const app = getApp();
Component({
  properties: {
    currentPage: {
      type: String,
      value: ''
    }
  },
  data: {
    tabs: [
      {
        name: "简历库",
        page: "pages/corporate/talent/index",
        icon: "/static/tabbar/job.png",
        selectedIcon: "/static/tabbar/jobSel.png"
      },
      {
        name: "我的",
        page: "pages/profile/index",
        icon: "/static/tabbar/my.png",
        selectedIcon: "/static/tabbar/mySel.png"
      }
    ]
  },
  methods: {
    jump_need(){
      wx.reLaunch({
        url: '/pages/corporate/needs/index.js',
      })
    },
    onTabChange(e) {
      const { cur } = e.currentTarget.dataset;
      wx.reLaunch({
        url: `/${cur}`
      })
    }
  }
});
